package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File file = new File("./demo");
        if(file.exists()){
            System.out.println("该目录已经存在");
        }else {
            file.mkdirs();
            System.out.println("目录已经创建");
        }
    }
}
